./f2bin norm_syndata.txt syndata.bin

#for codebk size of ...
echo "for cdwd length 5, cdbk size 32..."
./stdvq -t syndata.bin  -c syndata5_32.cdb  -d 5 -f 32
./stdvqe -i syndata.bin -c syndata5_32.cdb  -d 5 -s 32  -p -r -o syndata5_32.out
./bin2f syndata5_32.out syndata5_32.rec  > /dev/null
./bin2db syndata5_32.cdb syndata5_32.cdk  > /dev/null
mv histogram1 syndata5_32.his
mv best_cdwrd.out syndata5_32.best


echo "for cdwd length 10, cdbk size 32..."
./stdvq -t syndata.bin  -c syndata10_32.cdb  -d 10 -f 32
./stdvqe -i syndata.bin -c syndata10_32.cdb  -d 10 -s 32  -p -r -o syndata10_32.out
./bin2f syndata10_32.out syndata10_32.rec   > /dev/null
./bin2db syndata10_32.cdb syndata10_32.cdk  > /dev/null
mv histogram1 syndata10_32.his
mv best_cdwrd.out syndata10_32.best

echo "for cdwd length 20, cdbk size 16..."
./stdvq -t syndata.bin  -c syndata20_16.cdb  -d 20 -f 16
./stdvqe -i syndata.bin -c syndata20_16.cdb  -d 20 -s 16  -p -r -o syndata20_16.out
./bin2f syndata20_16.out syndata20_16.rec  > /dev/null
./bin2db syndata20_16.cdb syndata20_16.cdk  > /dev/null
mv histogram1 syndata20_16.his
mv best_cdwrd.out syndata20_16.best

echo "for cdwd length 30, cdbk size 16..."
./stdvq -t syndata.bin  -c syndata30_16.cdb  -d 30 -f 16
./stdvqe -i syndata.bin -c syndata30_16.cdb  -d 30 -s 16  -p -r -o syndata30_16.out 
./bin2f syndata30_16.out syndata30_16.rec  > /dev/null 
./bin2db syndata30_16.cdb syndata30_16.cdk  > /dev/null
mv histogram1 syndata30_16.his
mv best_cdwrd.out syndata30_16.best

echo "for cdwd length 60, cdbk size 6..."
./stdvq -t syndata.bin  -c syndata60_6.cdb  -d 60 -f 6
./stdvqe -i syndata.bin -c syndata60_6.cdb  -d 60 -s 6  -p -r -o syndata60_6.out 
./bin2f syndata60_6.out syndata60_6.rec  > /dev/null
./bin2db syndata60_6.cdb syndata60_6.cdk  > /dev/null
mv histogram1 syndata60_6.his
mv best_cdwrd.out syndata60_6.best

